package com.edmond.jyframe.module;

import com.edmond.jyframe.R;
import com.edmond.jyframe.classes.MineTool;
import com.edmond.jyframe.classes.MineTools;
import com.edmond.jyframe.interfaces.module.MineToolModelInterface;
import com.edmond.jyframe.interfaces.presenter.MinePresenterInterface;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by edmond on 17-4-25.
 */

public class MineToolModel extends BaseModel<MineTools> implements MineToolModelInterface{
    @Override
    public void initMineTool(MinePresenterInterface presenter) {
        List<MineTool> mineTools = new ArrayList<>();
        MineTool mineTool1 = new MineTool();
        MineTool mineTool2 = new MineTool();
        MineTool mineTool3 = new MineTool();
        MineTool mineTool4 = new MineTool();
        MineTool mineTool5 = new MineTool();
        MineTool mineTool6 = new MineTool();
        MineTool mineTool7 = new MineTool();
        MineTool mineTool8 = new MineTool();
        MineTool mineTool9 = new MineTool();
        MineTool mineTool10 = new MineTool();

        mineTool1.setImageRsId(R.drawable.ic_collection);
        mineTool2.setImageRsId(R.drawable.ic_care);
        mineTool3.setImageRsId(R.drawable.ic_statistics);
        mineTool4.setImageRsId(R.drawable.ic_card);
        mineTool5.setImageRsId(R.drawable.ic_look_history);
        mineTool6.setImageRsId(R.drawable.ic_overcome);
        mineTool7.setImageRsId(R.drawable.ic_my_device);
        mineTool8.setImageRsId(R.drawable.ic_my_address);
        mineTool9.setImageRsId(R.drawable.ic_vip);
        mineTool10.setImageRsId(R.drawable.ic_class);

        mineTool1.setTitleRsId(R.string.favorite);
        mineTool2.setTitleRsId(R.string.care);
        mineTool3.setTitleRsId(R.string.cal);
        mineTool4.setTitleRsId(R.string.credit);
        mineTool5.setTitleRsId(R.string.history);
        mineTool6.setTitleRsId(R.string.connect);
        mineTool7.setTitleRsId(R.string.device);
        mineTool8.setTitleRsId(R.string.address);
        mineTool9.setTitleRsId(R.string.vip);
        mineTool10.setTitleRsId(R.string.more);

        mineTools.add(mineTool1);
        mineTools.add(mineTool2);
        mineTools.add(mineTool3);
        mineTools.add(mineTool4);
        mineTools.add(mineTool5);
        mineTools.add(mineTool6);
        mineTools.add(mineTool7);
        mineTools.add(mineTool8);
        mineTools.add(mineTool9);
        mineTools.add(mineTool10);

        getData().setMineTools(mineTools);
        presenter.initedMineTool(getData());
    }
}
